package com.WISSC.serviceImpl;

import com.WISSC.bean.Menu;
import com.WISSC.bean.Role;
import com.WISSC.bean.ztree.ZtreeBean;
import com.WISSC.mapper.MenuMapper;
import com.WISSC.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 *
 * @author 冯政尚
 * @since 2019-06-03
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Override
    public List<Menu> findMenuByRole(Role role) {
        return baseMapper.findMenuByRole(role);
    }

    @Override
    public List<ZtreeBean> findMenuZtree(Long id) {
        return baseMapper.findMenuZtree(id);    }

}
